import Layout from '@/layout/index.vue';
import * as i18n from '@/utils';
let system = {
	path: '/system',
	component: Layout,
	name: '系统管理',
	meta: {
		title: i18n.t('router.systemManage'),
		icon: 'dashboard',
		isPermiss: '/management/system'
	},
	children: [
		{
			path: '/system/wechat/index',
			name: '公众号配置',
			component: () => import('@/views/system/wechat/index.vue'),
			meta: { title: i18n.t('router.wechatConfig') },
			isPermiss: '/management/wx.wx_official/getList'
		},
		{
			hidden: true,
			path: '/system/wechat/add_info/index',
			component: () => import('@/views/system/wechat/add_info/index.vue'),
			name: '添加公众号',
			meta: { title: i18n.t('router.wechatAdd'), induce: '/system/wechat/index' },
			isPermiss: '/management/wx.wx_official/add'
		},
		{
			hidden: true,
			path: '/system/wechat/details_info/index',
			component: () => import('@/views/system/wechat/details_info/index.vue'),
			name: '修改公众号',
			meta: { title: i18n.t('router.wechatModify'), induce: '/system/wechat/index' },
			isPermiss: '/management/wx.wx_official/update'
		},

		{
			hidden: true,
			path: '/system/message/index',
			name: '消息模板',
			component: () => import('@/views/system/message/index.vue'),
			meta: { title: i18n.t('system.system.Message'), icon: 'dashboard' },
			isPermiss: '/management/wx.wx_template/getList'
		},
		{
			hidden: true,
			path: '/system/message/add_info/index',
			component: () => import('@/views/system/message/add_info/index.vue'),
			name: '添加模板',
			meta: { title: i18n.t('presets.info.add'), induce: '/system/message/index' },
			isPermiss: '/management/wx.wx_template/add'
		},
		{
			hidden: true,
			path: '/system/message/details_info/index',
			component: () => import('@/views/system/message/details_info/index.vue'),
			name: '修改模板',
			meta: { title: i18n.t('presets.info.modify'), induce: '/system/message/index' },
			isPermiss: '/management/wx.wx_template/update'
		},
		{
			path: '/system/system/index',
			name: '系统设置',
			component: () => import('@/views/system/system/index.vue'),
			meta: { title: i18n.t('router.Systemset') },
			isPermiss:'/management/config.config/getFind'
		},
		{
			path: '/machine/software/index',
			name: 'APP版本管理',
			component: () => import('@/views/machine/software/index.vue'),
			meta: { title: i18n.t('router.APPversion') },
			isPermiss: '/management/machine.machine_version/getList'
		},
		{
			hidden: true,
			path: '/machine/software/updateplan/getupdateplan',
			name: '更新计划',
			component: () => import('@/views/machine/software/updateplan/getupdateplan.vue'),
			meta: { title: i18n.t('router.Updateplan') },
			isPermiss: '/management/machine.machine_version_plan'
		},
		{
			path: '/system/api/index',
			name: 'API配置',
			component: () => import('@/views/system/api/index.vue'),
			meta: { title: i18n.t('router.APIconfig') },
			isPermiss: '/management/config.config_api/getList'
		},
		{
			hidden: true,
			path: '/system/api/details/index',
			name: 'API配置详情',
			component: () => import('@/views/system/api/details/index.vue'),
			meta: { title: i18n.t('router.APIdetails') },
			isPermiss: '/management/machine.machine_version/update'
		},
		{
			path: '/system/mail',
			name: '邮件管理',
			component: () => import('@/views/system/mail/index.vue'),
			meta: { title: i18n.t('router.emailManage') },
			isPermiss: '/management/email.email_config/getList'
		},
		{
			hidden: true,
			path: '/system/mail/template',
			name: '邮件消息模板',
			component: () => import('@/views/system/mail/template/index.vue'),
			meta: { title: i18n.t('router.EmailTemplate') },
			isPermiss: '/management/email.email_template/getList'
		},
		{
			hidden: true,
			path: '/system/mail/add',
			name: '添加邮件',
			component: () => import('@/views/system/mail/add/index.vue'),
			meta: { title: i18n.t('router.addEmail'), induce: '/system/mail' },
			isPermiss: '/management/email.email_config/add'
		},
		{
			path: '/system/errCode',
			name: '错误码解决方案',
			component: () => import('@/views/system/errCode/index.vue'),
			meta: { title: i18n.t('router.Error') },
			isPermiss: '/management/machine.machine_error_code_solution/getList'
		},
		{
			path: '/system/suggestions',
			name: '意见与建议',
			component: () => import('@/views/system/suggestions/index.vue'),
			meta: { title: i18n.t('help.help.sugge')},
			// isPermiss:'/management/machine.machine_error_code_solution/getList'
		}
	]
}

export default system;